var exp = require('express')
var bodyParser = require('body-parser')

var app = exp()

app.use(exp.static('public'))
app.use(bodyParser.urlencoded())

app.get('/',(req,res)=>{
    req.body.ip = req.ip
    req.body.time = new Date()
})

app.listen(3000,()=>{
    console.log('服务器启动成功！')
})